demos: Fix builds against Visual Studio headers
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 22 Jun 2020 09:04:18 +0000 (17:04 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 22 Jun 2020 09:04:18 +0000 (17:04 +0800)
commit293f2e6b1c1a01efcd040f54711e614c0850bfa1
tree6b87de998dc4f9040bb2875ea1ce96989c58917c
parentf83aa16f591156757eaa1677756a3c414e3353fb
demos: Fix builds against Visual Studio headers

According to [1], '_timezone' is already used for a global variable in the
time.h system header that is supplied by Microsoft, so using that for our
variable name when we are including time.h either directly or indirectly
will cause trouble.

This renames such variables to '_tz' to avoid that

[1]: https://docs.microsoft.com/en-us/cpp/c-runtime-library/daylight-dstbias-timezone-and-tzname
demos/gtk-demo/listview_clocks.c
demos/gtk-demo/listview_weather.c